﻿Imports System
Imports System.IO
Imports System.Net
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Data
Imports System.Windows.Media
Imports System.Windows.Media.Animation
Imports System.Windows.Navigation

Partial Public Class NewPMTWizardDialog

    Private _objViewModelNewPMTWizard As New ViewModelNewPMTWizard

    Public Sub New()
        MyBase.New()

        Me.InitializeComponent()
    End Sub

    Private Sub NewPMTWizardDialog_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
        'TODO : ajoutez ici l’implémentation du gestionnaire d’événements.
        Me.DataContext = _objViewModelNewPMTWizard
        AddHandler _objViewModelNewPMTWizard.RequestClose, AddressOf RequestClose_Handler
    End Sub

    Private Sub RequestClose_Handler(ByVal sender As Object, ByVal e As EventArgs)
        Me.DialogResult = Me.Result IsNot Nothing
    End Sub

    Public ReadOnly Property Result() As IPMT
        Get
            Return _objViewModelNewPMTWizard.PMT
        End Get
    End Property

End Class
